/*
 * lab1.fx
 *
 * Created on 13.09.2009, 21:30:02
 */
//нет такого пакета JavaFX179Labs.src.javafx179labs.Solopov.lab1;
package javafx179labs.Solopov.lab1;

/**
 * @author Администратор
 */
//кто импорты будет чистить?
// place your code here
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.paint.Color;
import javafx.scene.transform.*;
import javafx.scene.shape.Circle;
import javafx.scene.image.ImageView;
import javafx.scene.shape.Polygon;
import javafx.scene.shape.Arc;
import javafx.scene.shape.ArcType;
import javafx.scene.shape.Rectangle;
import javafx.scene.shape.Line;
import javafx.scene.effect.DropShadow;
import javafx.scene.Group;
import javafx.scene.shape.Polyline;
import javafx.scene.effect.SepiaTone;
import javafx.scene.shape.Ellipse;
import javafx.scene.effect.Lighting;
import javafx.scene.image.Image;
import javafx.scene.effect.Flood;
import javafx.scene.effect.Shadow;
import javafx.scene.effect.InnerShadow;
import javafx.scene.effect.Reflection;
import javafx.scene.effect.GaussianBlur;
import javafx.scene.effect.Glow;

/**
 * @author Дмитрий
 */

Stage {
    title: "Application title"
    width: 1024
    height: 768
    scene: Scene {
    fill: Color.BLUE
        content: [
            Text {
                font : Font {
                    size : 50
                }
                effect:  DropShadow{offsetY:4}
                x: 50
                y: 50
                content: "В стиле Пикассо"
                fill: Color.RED

                }
//куда столько пустых строк?


                        Rectangle {
                        transforms: Rotate {angle:40}
                        x: 500, y: 4
                        width: 120, height: 90
                        fill: Color.BLACK
                }


                        Arc {
                        centerX:646, centerY: 100
                        radiusX: 50, radiusY: 50
                        startAngle: 18, length: 120
                        type: ArcType.OPEN
                        fill: Color.CYAN


                }
                        Polyline {
                        points : [1660,5,560,50,560,5 ]
                        strokeWidth: 2.0
                        stroke: Color.RED
                }


                        Circle {
                        effect: SepiaTone {
                        level:4.5 // Level must be in the range [0,1]
                        }
                        centerX:300, centerY: 300
                        radius: 70
                        fill: Color.MAGENTA
                }

                        Ellipse {
                        effect: Lighting {
                        diffuseConstant: 4.0 //Diffuse constant must be in the range [0,2]
                        specularConstant: 6.0 //Specular constant must be in the range [0,2]
                        specularExponent: 50 //Specular exponent must be in the range [0,40]
                        surfaceScale: 3.5
                        }


                        centerX: 900, centerY: 600
                        radiusX: 100, radiusY: 50
                        fill: Color.GREEN
                 }




                         Group {
                         content: [
                         Ellipse {
                         centerX: 700, centerY: 300
                         radiusX: 125, radiusY: 50
                         fill: Color.DARKGRAY
                                 }

                         Rectangle {
                         x: 700, y: 300
                         width: 125, height: 90
                         fill: Color.PINK
                                 }
                         ]
                 }

                         Text {
                         font : Font {
                         size: 100
                         }
                         effect: Reflection {
                         fraction: 1.75// Fraction must be in the range [0,1]
                         topOffset: 1.0
                         topOpacity: 1.5 //Top opacity must be in the range [0,1]
                         bottomOpacity: 2.0 //Bottom opacity must be in the range [0,1]
                         }
                         x: 500, y: 390
                         content: "Привет мир!"
                 }




                         Polygon {

                         points : [ 232,323, 100,566, 100,100 ]
                         fill: Color.YELLOW
                 }
                         Polygon {
                         points : [ 100,100,566, 100, 323,232]
                         fill: Color.YELLOW
                 }

                         Rectangle {
                         effect: GaussianBlur {
                         radius: 10
                                         }
                         transforms: Rotate {angle:45}
                         x: 600, y: 200
                         width: 140, height: 140
                         fill: Color.WHITE
                 }


                         Polygon {
                         effect: InnerShadow {
                         choke: 1.5// Spread must be in the range [0,1]
                         offsetX: 20
                         offsetY: 30
                         radius: 25
                         color: Color.BLACK
                         }
                         points : [ 800,100, 700,200, 500,200 ]
                         fill: Color.ORANGE
                 }

                         Line {



                         startX: 600, startY: 700
                         endX: 230, endY: 800
                         strokeWidth: 20
                         stroke: Color.RED
                 }



                         Circle {

                         transforms: Scale { x : 1.0, y : 2.0 }

                         centerX: 900, centerY: 300
                         radius: 40
                         fill: Color.BLACK
                 }

                         Rectangle {
                         transforms: Scale { x : 0.5, y : 1.0 }

                         x:1200, y: 500
                         width: 140, height: 140
                         fill: Color.GRAY
                 }

                         Rectangle {
                         effect: DropShadow {
                         offsetX: 10
                         offsetY: 10
                         color: Color.BLACK
                         radius: 10
                                        }




                         transforms: Translate { x : 6.0, y : 50.0 }


                         x:1200, y: 600
                         width: 140, height: 90
                         fill: Color.BLACK
                 }






















        ]
    }
}